package com.cc8w.entity;

import com.cc8w.anno.CallAnnotation;

public class Person {
    private String name;
    private String phone;


    public void call(String phone){
        String funName = Thread.currentThread() .getStackTrace()[1].getMethodName();
        System.out.println(funName+": call to ==>"+phone);
    }

    @CallAnnotation
    public void callByAnnotationDefault(String phone){
        String funName = Thread.currentThread() .getStackTrace()[1].getMethodName();
        System.out.println(funName+": call to  ==>"+phone);
    }

    @CallAnnotation(phone = "fps2tao")
    public void callByAnnotation(String phone){
        String funName = Thread.currentThread() .getStackTrace()[1].getMethodName();
        System.out.println(funName+": call to  ==>"+phone);

    }




}
